package com.example.studentmanager.model;

import com.example.studentmanager.model.extension.TeachCourse;
import org.springframework.stereotype.Component;

import java.io.Serializable;

@Component
public class Teacher extends TeachCourse implements Serializable {
    private static final long serialVersionUID = 1L;
    private String name;
    private String sex;
    private String  phone;
    private String depart;

    public Teacher() {
    }



    public String getDepart() {
        return depart;
    }

    public void setDepart(String depart) {
        this.depart = depart;
    }

    @Override
    public String toString() {
        return "Teacher{" +
                "name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", phone=" + phone +
                ", depart='" + depart + '\'' +
                ", age=" + age +
                ", password='" + password + '\'' +
                ", teaid=" + teaid +
                '}';
    }

    public Teacher(String name, String sex, String phone, String depart, Integer age, String password, Integer teaid) {
        this.name = name;
        this.sex = sex;
        this.phone = phone;
        this.depart = depart;
        this.age = age;
        this.password = password;
        this.teaid = teaid;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getName() {

        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getTeaid() {
        return teaid;
    }

    public void setTeaid(Integer teaid) {
        this.teaid = teaid;
    }



    private Integer age;
    private String password;
    private Integer teaid;


}
